var mvItem = {
    Id: 0,
    Keyword: "Keyword",
    Author: "",
    Filepath: "movie1.mov;movie2.mov;movie3.mov",
    Thumb_s: "4fd1d3032.png",
    Thumb_l: "",
    Title: "this is title",
    Thumbfiles: "",
    Infos: "",
    Filetime: "",
    PageUrl: "",
    Star: 2,
};

var apiurl = "/api/";

var vm = new Vue({
    el: '#app',
    data: {
        content: "hello, js html",
        allch:[],
        newslist:[]
    },
    methods: {
        getChData: function () {
            axios.get(apiurl+'GetCh').then(function (resp) {
                if (resp.data !=""){
                    vm.allch = resp.data;
                }
            }).catch(function (err) {
                console.log('http error：' + err.status + ',' + err.statusText);
            });
        },
        getNewsData: function (id) {
            axios.get(apiurl + "GetNews", {params:{id:id}})
            .then(function (resp) {
                if (resp.data !=""){
                    vm.newslist = resp.data;
                }
            }).catch(function (err) {
                console.log('http error：' + err.status + ',' + err.statusText);
            });
        }
    }
});

vm.getChData();
